import request from '@/utils/request'

// 查询房间列表
export function listZoom(query) {
  return request({
    url: '/system/zoom/list',
    method: 'get',
    params: query
  })
}

// 查询房间详细
export function getZoom(id) {
  return request({
    url: '/system/zoom/' + id,
    method: 'get'
  })
}

// 新增房间
export function addZoom(data) {
  return request({
    url: '/system/zoom',
    method: 'post',
    data: data
  })
}

// 修改房间
export function updateZoom(data) {
  return request({
    url: '/system/zoom',
    method: 'put',
    data: data
  })
}

// 删除房间
export function delZoom(id) {
  return request({
    url: '/system/zoom/' + id,
    method: 'delete'
  })
}
